
import request from '@/utils/request'
import { queryFormart } from '@/utils/queryFormart.js'

const userApi = {
    drone: '/drone',
    addDrone: '/drone/area',
    uploadPic: '/file/minio/xihu',
    countPic: '/drone/pic/'

}

export function getDroneList (params) {
    return request({
        url: userApi.drone,
        method: 'get',
        params
    })
}
export function countPic (id) {
    return request({
        url: userApi.countPic + id,
        method: 'put'
    })
}
export function delDrone (id) {
    return request({
        url: userApi.addDrone + '/' + id,
        method: 'delete'
    })
}

// 区域人数变化趋势
export function getAreaData (parameter) {
    return request({
        // headers: {
        //     'Content-Type': 'application/x-www-form-urlencoded',
        //     'Content-Type': 'multipart/form-data;'
        // },
        url: userApi.getAreaData,
        method: 'post',
        // data: queryFormart(parameter)
        data: parameter
    })
}


